package cn.yunyichina.provider.sb.vo;

import cn.yunyichina.provider.sb.entity.MedicalCheckingDetail;

/**
 * Created by 15-AK on 2017/7/12.
 */
public class MedicalOutpatientCheckingDetailVo {
    /**检验项目名称	String(32)	参照国家的检验项目字典	不可空	125617814957521000**/
    private String checkItemName;
    /**检验项目代码	String(16)		可空**/
    private String checkItemNo;
    /**检验方法	String(16)		可空**/
    private String checkWay;
    /**检验说明	String(1024)		可空**/
    private String checkInstruction;
    /**标本类型	String(4)		可空**/
    private String specimenType;
    /**标本采集部位	String(64)		可空**/
    private String specimenCollectSite;
    /**检验结果(正常/异常)	String(1)	Y:正常 N:异常	不可空*/
    private String checkResult;
    /**检验记录ID	String(64)	检验报告唯一号	不可空**/
    private String checkRecordId;
    /**	门诊流水号	String(64)	唯一标示一次门诊	不可空	可空	125617814957521000**/
    private String outpatientSerialNo;
    /**检验流水号(医院系统的号)	String(32)		不可空**/
    private String checkSerialNo;
    /**审核时间	Date		可空**/
    private String auditDate;
    /**	报告医生_ID	String(16)		可空**/
    private String reportDoctorNo;
    /**报告医生姓名	String(8)		不可空**/
    private String reportDoctorName;
    /**报告时间	Date	YYYY-MM-DD HH24:MI:SS	不可空**/
    private String  reportDate;
    /**检验结果代码	String(8)		可空**/
    private String checkResultNo;
    /**结果数值	String(16)		不可空**/
    private String checkResultValue;
    /**计量单位	String(4)		不可空**/
    private String checkMeasureUnit;
    /**参考范围	String(64)		不可空**/
    private String referenceRange;
    /**报案号	String(64)		不可空	9100063879**/
    private String caseNo;
    /**总条数	String(16)	记录总条数	不可空	1**/
    private Integer rows;
    /**当前第几条	String(16)	总条数确定下当前条数是第几条，从1开始计数	不可空	不可空	1
     样例：**/
    private Integer offset;

    public String getCheckItemName() {
        return checkItemName;
    }

    public void setCheckItemName(String checkItemName) {
        this.checkItemName = checkItemName;
    }

    public String getCheckItemNo() {
        return checkItemNo;
    }

    public void setCheckItemNo(String checkItemNo) {
        this.checkItemNo = checkItemNo;
    }

    public String getCheckWay() {
        return checkWay;
    }

    public void setCheckWay(String checkWay) {
        this.checkWay = checkWay;
    }

    public String getCheckInstruction() {
        return checkInstruction;
    }

    public void setCheckInstruction(String checkInstruction) {
        this.checkInstruction = checkInstruction;
    }

    public String getSpecimenType() {
        return specimenType;
    }

    public void setSpecimenType(String specimenType) {
        this.specimenType = specimenType;
    }

    public String getSpecimenCollectSite() {
        return specimenCollectSite;
    }

    public void setSpecimenCollectSite(String specimenCollectSite) {
        this.specimenCollectSite = specimenCollectSite;
    }

    public String getCheckResult() {
        return checkResult;
    }

    public void setCheckResult(String checkResult) {
        this.checkResult = checkResult;
    }

    public String getCheckRecordId() {
        return checkRecordId;
    }

    public void setCheckRecordId(String checkRecordId) {
        this.checkRecordId = checkRecordId;
    }

    public String getOutpatientSerialNo() {
        return outpatientSerialNo;
    }

    public void setOutpatientSerialNo(String outpatientSerialNo) {
        this.outpatientSerialNo = outpatientSerialNo;
    }

    public String getCheckSerialNo() {
        return checkSerialNo;
    }

    public void setCheckSerialNo(String checkSerialNo) {
        this.checkSerialNo = checkSerialNo;
    }

    public String getAuditDate() {
        return auditDate;
    }

    public void setAuditDate(String auditDate) {
        this.auditDate = auditDate;
    }

    public String getReportDoctorNo() {
        return reportDoctorNo;
    }

    public void setReportDoctorNo(String reportDoctorNo) {
        this.reportDoctorNo = reportDoctorNo;
    }

    public String getReportDoctorName() {
        return reportDoctorName;
    }

    public void setReportDoctorName(String reportDoctorName) {
        this.reportDoctorName = reportDoctorName;
    }

    public String getReportDate() {
        return reportDate;
    }

    public void setReportDate(String reportDate) {
        this.reportDate = reportDate;
    }

    public String getCheckResultNo() {
        return checkResultNo;
    }

    public void setCheckResultNo(String checkResultNo) {
        this.checkResultNo = checkResultNo;
    }

    public String getCheckResultValue() {
        return checkResultValue;
    }

    public void setCheckResultValue(String checkResultValue) {
        this.checkResultValue = checkResultValue;
    }

    public String getCheckMeasureUnit() {
        return checkMeasureUnit;
    }

    public void setCheckMeasureUnit(String checkMeasureUnit) {
        this.checkMeasureUnit = checkMeasureUnit;
    }

    public String getReferenceRange() {
        return referenceRange;
    }

    public void setReferenceRange(String referenceRange) {
        this.referenceRange = referenceRange;
    }

    public String getCaseNo() {
        return caseNo;
    }

    public void setCaseNo(String caseNo) {
        this.caseNo = caseNo;
    }

    public Integer getTotalRows() {
        return rows;
    }

    public void setTotalRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getCurrentOffset() {
        return offset;
    }

    public void setCurrentOffset(Integer offset) {
        this.offset = offset;
    }


    public MedicalCheckingDetail buildMedicalCheckingDetail(){
        MedicalCheckingDetail medicalCheckingDetail = new MedicalCheckingDetail();
        medicalCheckingDetail.setBusinessFeeId("125617814957521000");
        medicalCheckingDetail.setItemName("123412444");
        medicalCheckingDetail.setInspectResult("Y");
        medicalCheckingDetail.setInspectId("125617814957521000");
        medicalCheckingDetail.setInspectDetailId("125617814957521000");
        medicalCheckingDetail.setReportDoctorName("王医生");
        medicalCheckingDetail.setReportTime("2017-05-15 11:04:00");
        medicalCheckingDetail.setResultValue("40.4");
        medicalCheckingDetail.setUnit("mol");
        medicalCheckingDetail.setRefRange("30.2 ~ 50.5");
        medicalCheckingDetail.setCaseNo("9100063879");
        medicalCheckingDetail.setTotalRows(1);
        medicalCheckingDetail.setCurrentOffset(1);
        return medicalCheckingDetail;
    }

    public MedicalOutpatientCheckingDetailVo buildMedicalOutpatientCheckingDetailVo(MedicalCheckingDetail medicalCheckingDetail){
        this.setOutpatientSerialNo(medicalCheckingDetail.getBusinessFeeId());
        this.setCheckItemName(medicalCheckingDetail.getItemName());
        this.setOutpatientSerialNo(medicalCheckingDetail.getBusinessFeeId());
        this.setCheckResult(medicalCheckingDetail.getInspectResult());
        this.setCheckRecordId(medicalCheckingDetail.getInspectId());
        this.setCheckSerialNo(medicalCheckingDetail.getInspectDetailId());
        this.setReportDoctorName(medicalCheckingDetail.getReportDoctorName());
        this.setReportDate(medicalCheckingDetail.getReportTime());
        this.setCheckResultValue(medicalCheckingDetail.getResultValue());
        this.setCheckMeasureUnit(medicalCheckingDetail.getUnit());
        this.setReferenceRange(medicalCheckingDetail.getRefRange());
        this.setCaseNo(medicalCheckingDetail.getCaseNo());
        this.setTotalRows(medicalCheckingDetail.getTotalRows());
        this.setCurrentOffset(medicalCheckingDetail.getCurrentOffset());
        return this;
    }
}
